PATHMac OS 8 and 9 Developer Documentation > Human Interface Toolbox > Appearance Manager >

Programming With the Appearance Manager


GetThemeDrawingState

Obtains the drawing state of the current graphics port.

pascal OSStatus GetThemeDrawingState (
                     ThemeDrawingState *outState);
outState
A pointer to a value of type ThemeDrawingState . On return, GetThemeDrawingState sets the outState parameter to point to a copy of the drawing state for the current graphics port.
function result
A result code; see Result Codes .
DISCUSSION

Your application may call the GetThemeDrawingState function before performing an operation that modifies the drawing state of a graphics port. To return the graphics port to its previous drawing state and release the memory allocated for the drawing state reference, your application should call SetThemeDrawingState , providing the reference obtained in the outState parameter of GetThemeDrawingState . You can also call DisposeThemeDrawingState to release the allocated memory.

VERSION NOTES

Available with Appearance Manager 1.1 and later.


© 1999 Apple Computer, Inc. – (Last Updated 29 April 99)